<div class="lCol">
    <h2>Installed Nodes</h2>
    <table class="latest" cellspacing="0">
        <tbody>
        {foreach from=$mynodes item=node}
            {cycle values="shade,noshade" assign="lval"}
            <tr class="{$lval}" id="node{$node.id}">
                <td class="icon2">
                    {if $node.fold == 't'}
                        <img alt="Folder" src="{$INA.adminTemplate}images/folder.gif" align="middle">
                    {else}
                        <img alt="Page" src="{$INA.adminTemplate}images/page.gif" align="middle">
                    {/if}
                </td>
                <td class="title">
                    {$node.desc}
                    <p class="excerpt">
                      Code Set: <b>{$node.name}</b> | {if $node.fold == 't'}Folders:{else}Pages:{/if} {$node.total} {if $node.id > 3 and $node.total == 0} | <a href="{$INA.this}?remove={$node.name}" class="admin">Uninstall</a>{/if}
                    </p>
                </td>
            </tr>
        {foreachelse}
            <tr class="shade">
                <td class="icon"><img alt="Not Available" src="{$INA.adminTemplate}images/stat_na.gif" align="middle"></td>
                <td class="title">
                    Nothing Installed
                </td>
            </tr>
        {/foreach}
        </tbody>
    </table>
</div>

<div class="rCol">
    <h2>Available Nodes</h2>
    <table class="latest" cellspacing="0">
        <tbody>
        {foreach from=$newnodes item=node}
            {cycle values="shade,noshade" assign="rval"}
            <tr class="{$rval}" id="nn_{$node.name}">
                <td class="icon2">
                    {if $node.fold == 't'}
                        <img alt="Folder" src="{$INA.adminTemplate}images/folder.gif" align="middle">
                    {else}
                        <img alt="Page" src="{$INA.adminTemplate}images/page.gif" align="middle">
                    {/if}
                </td>
                <td class="title">
                    {$node.desc}
                    <p class="excerpt">
                      Code Set: <b>{$node.name}</b> | <a href="{$INA.this}?install={$node.name}">Install</a>
                    </p>
                </td>
            </tr>
        {foreachelse}
            <tr class="shade">
                <td class="icon"><img alt="Not Available" src="{$INA.adminTemplate}images/stat_na.gif" align="middle"></td>
                <td class="title">
                    Nothing New Available
                </td>
            </tr>
        {/foreach}
        </tbody>
    </table>
</div>
{if $smarty.get.added}
<SCRIPT language="JavaScript" type="text/javascript">
    Fat.fade_element("node{$smarty.get.added}",100,3000,"#ffffcc","{if $lval == "noshade"}#ffffff{else}#e5e5e5{/if}");
</SCRIPT>
{/if}